<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=system&act=set">系统设置</a> &raquo; 网站设置</p><!-- inc:position.fr --></div>

<div class="page_pad">
  <form name="qgform" id="qgform" method="post" action="{:$mainlink}?file=system&act=setok" onsubmit="return SystemSet()">
  <div class="content_box">
    <div class="content_bor">
      <ul class="tabul">
        <li onclick="tabs(this,'tabweb')" class="tabon"><a class="a4" href="javascript:void(0)">网站信息</a></li>
        <li onclick="tabs(this,'tabmail')"><a href="javascript:void(0)">留言设置</a></li>
        <!-- if($_SESSION[admin][typer] == "system") -->
        <li onclick="tabs(this,'tabsys')"><a href="javascript:void(0)">系统设置</a></li>
        <li onclick="tabs(this,'tabthumb')"><a href="javascript:void(0)">缩略图</a></li>
        <li onclick="tabs(this,'tabmark')"><a href="javascript:void(0)">水印图</a></li>
        <!-- end -->
        <div class="clear"></div>
      </ul>
      
      <div id="tabweb" class="tabdiv tabshow">
        <table class="ctable">
          <!--if($system[jianti] == on) -->
          <tr>
            <td class="left">中文网站标题：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="sitename" id="sitename" value="{:$rs[sitename]}">
              &nbsp;
              <span>[填写站点的标题]</span>
              <!-- else -->
              {:$rs[sitename]}
              <input type="hidden" name="sitename" id="sitename" value="{:$rs[sitename]}">
              <!-- end -->
            </td>
          </tr>
          <tr>
            <td class="left">中文网站关键字：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="keywords" id="keywords" value="{:$rs[keywords]}">
              &nbsp;
              <span>[多个关键字用英文逗号隔开]</span>
              <!-- else -->
              {:$rs[keywords]}
              <input type="hidden" name="keywords" id="keywords" value="{:$rs[keywords]}">
              <!-- end -->
            </td>
          </tr>
          <tr>
            <td class="left">中文网站描述：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="description" id="description" value="{:$rs[description]}">
              &nbsp;
              <span>[简单描述一下站点的信息]</span>
              <!-- else -->
              {:$rs[description]}
              <input type="hidden" name="description" id="description" value="{:$rs[description]}">
              <!-- end -->
            </td>
          </tr>
          <!-- end -->
          
          <!--if($system[fanti] == on) -->
          <tr>
            <td class="left">繁体网站标题：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="sitename_ft" id="sitename_ft" value="{:$rs[sitename_ft]}">
              &nbsp;
              <span>[填写站点的标题]</span>
              <!-- else -->
              {:$rs[sitename_ft]}
              <input type="hidden" name="sitename_ft" id="sitename_ft" value="{:$rs[sitename_ft]}">
              <!-- end -->
            </td>
          </tr>
          <tr>
            <td class="left">繁体网站关键字：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="keywords_ft" id="keywords_ft" value="{:$rs[keywords_ft]}">
              &nbsp;
              <span>[多个关键字用英文逗号隔开]</span>
              <!-- else -->
              {:$rs[sitename_ft]}
              <input type="hidden" name="keywords_ft" id="keywords_ft" value="{:$rs[keywords_ft]}">
              <!-- end -->
            </td>
          </tr>
          <tr>
            <td class="left">繁体网站描述：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="description_ft" id="description_ft" value="{:$rs[description_ft]}">
              &nbsp;
              <span>[简单描述一下站点的信息]</span>
              <!-- else -->
              {:$rs[description_ft]}
              <input type="hidden" name="description_ft" id="description_ft" value="{:$rs[description_ft]}">
              <!-- end -->
            </td>
          </tr>
          <!-- end -->
          
          <!--if($system[english] == on) -->
          <tr>
            <td class="left">英文网站标题：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="sitename_en" id="sitename_en" value="{:$rs[sitename_en]}">
              &nbsp;
              <span>[填写站点的标题]</span>
              <!-- else -->
              {:$rs[sitename_en]}
              <input type="hidden" name="sitename_en" id="sitename_en" value="{:$rs[sitename_en]}">
              <!--end-->
            </td>
          </tr>
          <tr>
            <td class="left">英文网站关键字：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="keywords_en" id="keywords_en" value="{:$rs[keywords_en]}">
              &nbsp;
              <span>[多个关键字用英文逗号隔开]</span>
              <!-- else -->
              {:$rs[keywords_en]}
              <input type="hidden" name="keywords_en" id="keywords_en" value="{:$rs[keywords_en]}">
              <!-- end -->
            </td>
          </tr>
          <tr>
            <td class="left">英文网站描述：</td>
            <td class="right">
              <!-- if($QG_AP[keywords]) -->
              <input class="ginput sysinput" type="text" name="description_en" id="description_en" value="{:$rs[description_en]}">
              &nbsp;
              <span>[简单描述一下站点的信息]</span>
              <!-- else -->
              {:$rs[description_en]}
              <input type="hidden" name="description_en" id="description_en" value="{:$rs[description_en]}">
              <!-- end -->
            </td>
          </tr>
          <!-- end -->
          
          <tr>
            <td class="left">ICP备案号：</td>
            <td class="right"><input class="ginput sysinput" type="text" name="icp" id="icp" value="{:$rs[icp]}"></td>
          </tr>
        </table>
      </div><!--tabdiv-->
      
      <div id="tabmail" class="tabdiv">
        <table class="ctable">
          <tr>
            <td class="left">是否发送到邮箱：</td>
            <td class="right">
              <select name="ifsendmail" id="ifsendmail">
                <option value="0"{if(!$rs[ifsendmail])} selected{end}>不启用</option>
                <option value="1"{if($rs[ifsendmail])} selected{end}>启用</option>
              </select>
              &nbsp;
              <span>[启用后需要设置邮箱地址，网上留言会直接发送到该邮箱]</span>
            </td>
          </tr>
          <tr>
            <td class="left">邮件接收地址：</td>
            <td class="right"><input class="ginput sysinput" type="text" name="mailaddress" id="mailaddress" value="{:$rs[mailaddress]}"></td>
          </tr>
          <tr>
            <td class="left">邮件标题：</td>
            <td class="right"><input class="ginput sysinput" type="text" name="mailtitle" id="mailtitle" value="{:$rs[mailtitle]}"></td>
          </tr>
          <tr {if($_SESSION[admin][typer]!="system")}style="display:none;"{end}>
            <td class="left">服务器类型：</td>
            <td class="right">
              <select name="hostarea" id="hostarea">
                <option value="0"{if(!$rs[hostarea])} selected{end}>国内主机</option>
                <option value="1"{if($rs[hostarea])} selected{end}>香港或国外主机</option>
              </select>
              &nbsp;
              <span>[若是香港或国外主机则以下设置无效]</span>
            </td>
          </tr>
        </table>
      </div><!--tabdiv-->
      
      <div id="tabsys" class="tabdiv">
        <table class="ctable">
          <tr>
            <td class="left">语言版本：</td>
            <td class="right">
              <input type="checkbox" name="jianti" id="jianti" {if($system[jianti] == on)}checked="checked"{end} />
              简体 &nbsp; &nbsp;
              <input type="checkbox" name="english" id="english" {if($system[english] == on)}checked="checked"{end} />
              ENGLISH &nbsp; &nbsp;
              <input type="checkbox" name="fanti" id="fanti" {if($system[fanti] == on)}checked="checked"{end} />
              繁体 &nbsp; &nbsp;
            </td>
          </tr>
          <tr {if($_SESSION[admin][typer]!="system")}style="display:none;"{end}>
            <td class="left">多重并发登录：</td>
            <td class="right">
              <input type="checkbox" name="istonglogin" id="istonglogin" {if($system[istonglogin] == on)}checked="checked"{end} />
              &nbsp;
              <span>是&nbsp;[开启后同一用户将不能同时登录后台]</span>
            </td>
          </tr>
          <tr>
            <td class="left">缓存时间：</td>
            <td class="right">
              <input class="ginput" type="text" name="mintime" id="mintime" value="{:$rs[mintime]}">
              －
              <input class="ginput" type="text" name="maxtime" id="maxtime" value="{:$rs[maxtime]}">
              &nbsp;
              <span>[填写缓存时间的范围，左边是最小值，右边是最大值，不缓存请都设为0，单位是秒]</span>
            </td>
          </tr>
          <tr>
            <td class="left">&nbsp;</td>
            <td class="right clue_on">1小时等于3600秒，IP流量小于3000时建议不要使用缓存，启用缓存时建议最小缓存时间不要小于3600秒</td>
          </tr>
          <tr>
            <td class="left">时间较正：</td>
            <td class="right">
              <input class="ginput" type="text" name="timerevise" id="timerevise" value="{:$rs[timerevise]}">
              &nbsp;
              <span>[如果服务器时间与客户端时间不一致，请添加误差，支持负值，单位是分钟]</span>
            </td>
          </tr>
          <tr>
            <td class="left">时区：</td>
            <td class="right">
              <input class="ginput" type="text" name="timezone" id="timezone" value="{:$rs[timezone]}">
              &nbsp;
              <span>[填写时区，北京使用 +8 区，支持负值]</span>
            </td>
          </tr>
          <tr>
            <td class="left">编码：</td>
            <td class="right">
              <select name="mailtype" id="mailtype">
                <option value="gbk"{if($rs[mailtype] == "gbk")} selected{end}>GBK编码</option>
                <option value="utf8"{if($rs[mailtype] == "utf8")} selected{end}>UTF-8编码</option>
              </select>
              &nbsp;
              <span>[国内服务器一般使用GBK编码，请注意选择]</span>
            </td>
          </tr>
          <tr>
            <td class="left">GD功能：</td>
            <td class="right">
              <select name="isgd" id="isgd">
                <option value="1"{if($rs[isgd])} selected{end}>启用</option>
                <option value="0"{if(!$rs[isgd])} selected{end}>禁用</option>
              </select>
              &nbsp;
              <span><!-- if(function_exists('imagecreate')) --><span>您的服务器支持GD功能，建议您启用</span><!-- else --><span style="color:darkred;">不支持GD功能，请禁用</span><!-- end --></span>
            </td>
          </tr>
          <tr>
            <td class="left">图片质量：</td>
            <td class="right">
              <select name="gdquality" id="gdquality">
                <option value="60"{if($rs[gdquality] == "60")} selected{end}>较小文件</option>
                <option value="80"{if($rs[gdquality] == "80")} selected{end}>较大品质</option>
                <option value="100"{if($rs[gdquality] == "100")} selected{end}>百分百精度</option>
              </select>
              &nbsp;
              <span>[该功能仅限jpg格式有效]</span>
            </td>
          </tr>
          <tr>
            <td class="left">图片水印：</td>
            <td class="right"><button class="gbutton" type="button" onclick="qgurl('{:$mainlink}?file=watermark&act=thumb')">生成图片水印</button></td>
          </tr>
        </table>
      </div><!--tabdiv-->
      
      <div id="tabthumb" class="tabdiv">
        <table class="qg_notice">
          <tr>
            <td style="text-align:left;"> &nbsp; &gt; GD功能全局参数设置 &nbsp; 〔注意不要使用单引号、双引号及美元符号〕
            </td>
          </tr>
        </table>
        <table class="ctable">
          <tr>
            <td class="left">宽度：</td>
            <td class="right">
              <input class="ginput" type="text" name="thumbwidth" id="thumbwidth" value="{:$rs[thumbwidth]}" />
              &nbsp;
              <span>[设置缩略图的宽度，推荐您使用 160 仅支持数字]</span>
            </td>
          </tr>
          <tr>
            <td class="left">高度：</td>
            <td class="right">
              <input class="ginput" type="text" name="thumbheight" id="thumbheight" value="{:$rs[thumbheight]}" />
              &nbsp;
              <span>[设置缩略图的高度，推荐您使用 120 仅支持数字]</span>
            </td>
          </tr>
          <tr>
            <td class="left">生成缩略图方式：</td>
            <td class="right">
              <select name="gdthumbtype" id="gdthumbtype">
                <option value="0"{if(!$rs[gdthumbtype])} selected{end}>缩放法</option>
                <option value="1"{if($rs[gdthumbtype])} selected{end}>裁剪法</option>
              </select>
            </td>
          </tr>
          <tr>
            <td class="left">是否使用水印：</td>
            <td class="right">
              <select name="thumbiscopyright" id="thumbiscopyright" onchange="if(this.value　==　1){document.getElementById('div1').className='ctable';} else if(this.value　==　0){document.getElementById('div1').className='hidden';}">
                <option value="1"{if($rs[thumbiscopyright])} selected{end}>启用</option>
                <option value="0"{if(!$rs[thumbiscopyright])} selected{end}>禁用</option>
              </select>
              &nbsp;
              <span>[若启用版权功能后需要设置相水的水印图片及添加位置]</span>
            </td>
          </tr>
        </table>
        <table id="div1" {if(!$rs[thumbiscopyright])}style="display:none;"{end} class="ctable">
          <tr>
            <td class="left">水印图片：</td>
            <td class="right">
              <table>
                <tr>
                  <td><input class="ginput" type="text" name="thumbcopyright" id="thumbcopyright" value="{:$rs[thumbcopyright]}" style="width:160px;"></td>
                  <td>&nbsp;&nbsp;</td>
                  <td><img src="images/thumb.gif" onclick="open_getImg('markcopyright')" style="cursor:pointer;" border="0"></td>
                  <td>&nbsp;[基于网站根目录下的相对图片路径，如：{:'images'}/shuiyin.jpg 建议使用jpg格式]</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">水印图片透明度：</td>
            <td class="right">
              <table>
                <tr>
                  <td>
                    <select name="thumbtranspance" id="thumbtranspance">
                      <option value="0">完全透明</option>
                      <option value="10"{if($rs[thumbtranspance] == '10')} selected{end}>10</option>
                      <option value="20"{if($rs[thumbtranspance] == '20')} selected{end}>20</option>
                      <option value="30"{if($rs[thumbtranspance] == '30')} selected{end}>30</option>
                      <option value="40"{if($rs[thumbtranspance] == '40')} selected{end}>40</option>
                      <option value="50"{if($rs[thumbtranspance] == '50')} selected{end}>50（半透明）</option>
                      <option value="60"{if($rs[thumbtranspance] == '60')} selected{end}>60</option>
                      <option value="70"{if($rs[thumbtranspance] == '70')} selected{end}>70</option>
                      <option value="80"{if($rs[thumbtranspance] == '80')} selected{end}>80</option>
                      <option value="90"{if($rs[thumbtranspance] == '90')} selected{end}>90</option>
                      <option value="100"{if($rs[thumbtranspance] == '100')} selected{end}>不透明</option>
                    </select>
                  </td>
                  <td>&nbsp;[值越大，透明度越低，完全透明等同于不使用水印图片]</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">水印图片位置：</td>
            <td class="right">
              <table class="ntable" style="width:50px;">
                <tr>
                  <td><input type="radio" name="thumbposition" value="top-left"{if($rs[thumbposition] == "top-left")} checked{end}></td>
                  <td><input type="radio" name="thumbposition" value="top-middle"{if($rs[thumbposition] == "top-middle")} checked{end}></td>
                  <td><input type="radio" name="thumbposition" value="top-right"{if($rs[thumbposition] == "top-right")} checked{end}></td>
                </tr>
                <tr>
                  <td><input type="radio" name="thumbposition" value="middle-left"{if($rs[thumbposition] == "middle-left")} checked{end}></td>
                  <td><input type="radio" name="thumbposition" value="middle-middle"{if($rs[thumbposition] == "middle-middle")} checked{end}></td>
                  <td><input type="radio" name="thumbposition" value="middle-right"{if($rs[thumbposition] == "middle-right")} checked{end}></td>
                </tr>
                <tr>
                  <td><input type="radio" name="thumbposition" value="bottom-left"{if($rs[thumbposition] == "bottom-left")} checked{end}></td>
                  <td><input type="radio" name="thumbposition" value="bottom-middle"{if($rs[thumbposition] == "bottom-middle")} checked{end}></td>
                  <td><input type="radio" name="thumbposition" value="bottom-right"{if($rs[thumbposition] == "bottom-right")} checked{end}></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">边框设置：</td>
            <td class="right">
              <table cellpadding="0" cellspacing="0">
                <tr>
                  <td>
                    <select name="thumbborder" id="thumbborder">
                      <option value="1">使用边框</option>
                      <option value="0"{if(!$system[thumbborder])} selected{end}>禁用边框</option>
                    </select>
                  </td>
                  <td>&nbsp;</td>
                  <td><input class="ginput" type="text" id="thumbcolor" name="thumbcolor" value="{:$rs[thumbcolor]}" onfocus="open_selectcolor(this,'thumbcolor')" /></td>
                  <td>&nbsp;&nbsp;</td>
                  <td>[如果启用边框，需在右侧栏里写上边框的颜色十六进制代码值，不含#号]</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">间距设置：</td>
            <td class="right">
              <input class="ginput" type="text" name="thumbpadding" id="thumbpadding" value="{:$rs[thumbpadding]}">
              &nbsp;
              <span>[可以为0，建议设置1]</span>
            </td>
          </tr>
        </table>
        <table class="ctable">
          <tr>
            <td class="left">背景填充色：</td>
            <td class="right">
              <input class="ginput" type="text" name="thumbbgcolor" id="thumbbgcolor" value="{:$rs[thumbbgcolor]}" onfocus="open_selectcolor(this,'thumbbgcolor')" />
              &nbsp;
              <span>[设置间距后请设置好填充颜色]</span>
            </td>
          </tr>
          <tr>
            <td class="left">背景图片：</td>
            <td class="right">
              <table>
                <tr>
                  <td><input class="ginput" type="text" name="thumbbgimg" id="thumbbgimg" value="{:$rs[thumbbgimg]}" /></td>
                  <td>&nbsp;&nbsp;</td>
                  <td><img src="images/thumb.gif" onclick="open_getImg('thumbbgimg')" style="cursor:pointer;" border="0"></td>
                  <td>&nbsp;[基于网站根目录下的相对图片路径，如：{:'images'}/bg.jpg 建议使用jpg格式]</td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </div><!--tabdiv-->
      
      <div id="tabmark" class="tabdiv">
        <table class="qg_notice">
          <tr>
            <td style="text-align:left;"> &nbsp; &gt; GD功能全局参数设置 &nbsp; 〔注意不要使用单引号、双引号及美元符号〕</td>
          </tr>
        </table>
        <table class="ctable">
          <tr>
            <td class="left">宽度：</td>
            <td class="right">
              <input class="ginput" type="text" name="markwidth" id="markwidth" value="{:$rs[markwidth]}" />
              &nbsp;
              <span>[设置水印图片的宽度，推荐您使用 540 仅支持数字]</span>
            </td>
          </tr>
          <tr>
            <td class="left">高度：</td>
            <td class="right">
              <input class="ginput" type="text" name="markheight" id="markheight" value="{:$rs[markheight]}" />
              &nbsp;
              <span>[设置水印图片的高度，推荐您使用 405 仅支持数字]</span>
            </td>
          </tr>
          <tr>
            <td class="left">生成水印图方式：</td>
            <td class="right">
              <select name="gdmarktype" id="gdmarktype">
                <option value="0"{if(!$rs[gdmarktype])} selected{end}>缩放法</option>
                <option value="1"{if($rs[gdmarktype])} selected{end}>裁剪法</option>
              </select>
            </td>
          </tr>
          <tr>
            <td class="left">是否使用水印：</td>
            <td class="right">
              <select name="markiscopyright" id="markiscopyright"  onchange="if(this.value　==　1){document.getElementById('div2').className='inline';} else if(this.value　==　0){document.getElementById('div2').className='hidden';}">
                <option value="1"{if($rs[markiscopyright])} selected{end}>启用</option>
                <option value="0"{if(!$rs[markiscopyright])} selected{end}>禁用</option>
              </select>
              &nbsp;
              <span>[若启用水印功能后需要设置相水的水印图片及添加位置]</span>
            </td>
          </tr>
        </table>
        <table id="div2" class="ctable" {if(!$rs[markiscopyright])}style="display:none;"{end}>
          <tr>
            <td class="left">水印图片：</td>
            <td class="right">
              <table>
                <tr>
                  <td><input class="ginput" type="text" name="markcopyright" id="markcopyright" value="{:$rs[markcopyright]}" /></td>
                  <td>&nbsp;&nbsp;</td>
                  <td><img src="images/thumb.gif" onclick="open_getImg('markcopyright')" style="cursor:pointer;" border="0"></td>
                  <td>&nbsp;[基于网站根目录下的相对图片路径，如：{:'images'}/shuiyin.jpg 建议使用jpg格式]</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">水印图片透明度：</td>
            <td class="right">
              <table>
                <tr>
                  <td>
                    <select name="marktranspance" id="marktranspance">
                      <option value="0">完全透明</option>
                      <option value="10"{if($rs[marktranspance] == '10')} selected{end}>10</option>
                      <option value="20"{if($rs[marktranspance] == '20')} selected{end}>20</option>
                      <option value="30"{if($rs[marktranspance] == '30')} selected{end}>30</option>
                      <option value="40"{if($rs[marktranspance] == '40')} selected{end}>40</option>
                      <option value="50"{if($rs[marktranspance] == '50')} selected{end}>50（半透明）</option>
                      <option value="60"{if($rs[marktranspance] == '60')} selected{end}>60</option>
                      <option value="70"{if($rs[marktranspance] == '70')} selected{end}>70</option>
                      <option value="80"{if($rs[marktranspance] == '80')} selected{end}>80</option>
                      <option value="90"{if($rs[marktranspance] == '90')} selected{end}>90</option>
                      <option value="100"{if($rs[marktranspance] == '100')} selected{end}>不透明</option>
                    </select>
                  </td>
                  <td>&nbsp;[值越大，透明度越低，完全透明等同于不使用水印图片]</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">水印图片位置：</td>
            <td class="right">
              <table class="ntable" style="width:50px;">
                <tr>
                  <td><input type="radio" name="markposition" value="top-left"{if($rs[markposition] == "top-left")} checked{end}></td>
                  <td><input type="radio" name="markposition" value="top-middle"{if($rs[markposition] == "top-middle")} checked{end}></td>
                  <td><input type="radio" name="markposition" value="top-right"{if($rs[markposition] == "top-right")} checked{end}></td>
                </tr>
                <tr>
                  <td><input type="radio" name="markposition" value="middle-left"{if($rs[markposition] == "middle-left")} checked{end}></td>
                  <td><input type="radio" name="markposition" value="middle-middle"{if($rs[markposition] == "middle-middle")} checked{end}></td>
                  <td><input type="radio" name="markposition" value="middle-right"{if($rs[markposition] == "middle-right")} checked{end}></td>
                </tr>
                <tr>
                  <td><input type="radio" name="markposition" value="bottom-left"{if($rs[markposition] == "bottom-left")} checked{end}></td>
                  <td><input type="radio" name="markposition" value="bottom-middle"{if($rs[markposition] == "bottom-middle")} checked{end}></td>
                  <td><input type="radio" name="markposition" value="bottom-right"{if($rs[markposition] == "bottom-right")} checked{end}></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">边框设置：</td>
            <td class="right">
              <table>
                <tr>
                  <td>
                    <select name="markborder" id="markborder">
                      <option value="1">使用边框</option>
                      <option value="0"{if(!$system[markborder])} selected{end}>禁用边框</option>
                    </select>
                  </td>
                  <td>&nbsp;</td>
                  <td><input class="ginput" type="text" id="markcolor" name="markcolor" value="{:$rs[markcolor]}" onfocus="open_selectcolor(this,'markcolor')" /></td>
                  <td>&nbsp;&nbsp;</td>
                  <td>[如果启用边框，需在右侧栏里写上边框的颜色十六进制代码值，不含#号]</td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td class="left">间距设置：</td>
            <td class="right">
              <input class="ginput" type="text" name="markpadding" id="markpadding" value="{:$rs[markpadding]}">
              &nbsp;
              <span>[可以为0，建议设置1]</span>
            </td>
          </tr>
        </table>
        <table class="ctable">
          <tr>
            <td class="left">背景填充色：</td>
            <td class="right">
              <input class="ginput" type="text" name="markbgcolor" id="markbgcolor" value="{:$rs[markbgcolor]}" onfocus="open_selectcolor(this,'markbgcolor')" />
              &nbsp;
              <span>[设置间距后请设置好填充颜色]</span>
            </td>
          </tr>
          <tr>
            <td class="left">背景图片：</td>
            <td class="right">
              <table>
                <tr>
                  <td><input class="ginput" type="text" name="markbgimg" id="markbgimg" value="{:$rs[markbgimg]}" /></td>
                  <td>&nbsp;&nbsp;</td>
                  <td><img src="images/thumb.gif" onclick="open_getImg('markbgimg')" style="cursor:pointer;" border="0"></td>
                  <td>&nbsp;[基于网站根目录下的相对图片路径，如：{:'images'}/bg.jpg 建议使用jpg格式]</td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </div><!--tabdiv-->
    </div>
  </div><!--content_box-->
  
  <div class="gbutton_div"><button type="submit" class="gbutton gbutton_dblue gbutton_add" id="creat_button">提交</button> &nbsp; <span id="show_step" style="color:red;"><img src="images/loading.gif" style="visibility:hidden;" /></span></div>
  </form>
</div><!--page_pad-->

<script type="text/javascript">
function SystemSet()
{
	document.getElementById("show_step").innerHTML = "<img src='images/loading.gif' border='0' align='absmiddle'> 正在保存数据，如果网页没有动静请刷新...";
	document.getElementById("creat_button").disabled=true;
}
function open_selectcolor(v,input)
{
	var vLeft = getLeft(v);
	var vTop = getTop(v);
	Layer.init('{:$mainlink}?file=open&act=selectcolor&inputname='+input,290,188,vLeft,vTop);
}
function open_getImg(v)
{
	Layer.init('{:$mainlink}?file=open&act=getgdimg&inputname='+v,500,500);
}
</script>

<!-- inc:frame.bottom -->